﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace Yahtzee.Console
{
    public class Scanner
    {
        TextReader inputStream;

        public Scanner(TextReader reader)
        {
            inputStream = reader;
        }

        internal int nextInt()
        {
            return int.Parse(inputStream.ReadLine());

        }

        internal void close()
        {
            inputStream.Close();
        }
    }
}
